package org.jeecg.modules.middle.auditCenter.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.jeecg.modules.manage.entity.CaishuiTaskSettle;

import java.util.List;
import java.util.Map;

/**
 * @Description: 任务结算
 * @Author: yfkj
 * @Date:   2023-02-20
 * @Version: V1.0
 */
public interface CaishuiTaskSettleMapper extends BaseMapper<CaishuiTaskSettle> {

    /**
     * 查询任务结算总额
     * @param params
     * @return
     */
    public Map<String,Object> queryCaishuiTaskSettleTotal(@Param("params") Map<String, String> params);

    /**
     * 最近7天结算统计
     * @return
     */
    public List<Map<String,Object>> last7DaysTaskSettleSum(@Param("params") Map<String, String> params);

    /**
     * 最近30天结算统计
     * @return
     */
    public List<Map<String,Object>> last30DaysTaskSettleSum(@Param("params") Map<String, String> params);

    /**
     * 查询预充值项目
     * @param params
     * @return
     */
    public List<Map<String,Object>> queryPreItemsTotal(@Param("params") Map<String, String> params);

}
